<?php  if ($this->pageCount>1): ?>
<?php
    $link = $this->translate('by_type_'.$this->TYPE);
?>
<div class="linkPage clearfix">
<p class="page">Trang:</p>    
        
    <ul class="clearfix">
        <!-- Begin numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
            	<li >
	                <a href="/<?php echo $link?>?page=<?php echo $page?>">
						<?php echo $page?>
                    </a>
                </li>    
            <?php else: ?>
            	<li><a class="active"><?php echo $page; ?></a></li>
            <?php endif; ?>
        <?php endforeach; ?>
       <!-- End numbered page links -->
        
    </ul>
    
    <!-- Begin next page link -->
      	<?php if (isset($this->next)): ?>
			<p class="nextpage">
            	<a title="Next" href="/<?php echo $link?>?page=<?php echo $this->next?>">
                	Next &raquo;
                </a>
            </p>
        <?php else: ?>
            <p class="nextpage">Next</p>
        <?php endif; ?>    
	<!-- End next page link -->
        
</div>  
<?php endif; ?>